import request from '@/utils/requist'
// 项目文件导入
export const UploadProjectData = (file) => {
  // {
  //   token,
  //   project_type,
  //   file
  // }
  return request({
    method: 'post',
    url:  '/api/project/UploadProjectData',
    data: file
  })
}

export const downTemplate = ({ template_type }) => {
  return request({
    method: 'post',
    url:  '/api/project/DownloadProjectTemplate',
    data: { template_type }
  })
}
export const BatchExportProject1 = ({ select_id_list }) => {
  return request({
    method: 'post',
    url:  '/api/project/BatchExportProject1',
    data: { select_id_list }
  })
}
export const BatchExportProject2 = ({ select_id_list }) => {
  return request({
    method: 'post',
    url:  '/api/project/BatchExportProject2',
    data: { select_id_list }
  })
}
export const SearchProject = ({
  taizhang_type,
  project_name,
  is_taixin,
  project_level,
  project_type,
  page,
  per_page,
  project_audit_status

}) => {
  return request({
    method: 'post',
    url:  '/api/project/SearchProject',
    data: {
      taizhang_type,
      project_name,
      is_taixin,
      project_level,
      project_type,
      page,
      per_page,
      project_audit_status
    }
  })
}



// export const getList = ({ project_type, project_id }) => {
//   return request({
//     method: 'post',
//     url:  '/api/project/CheckProjectDetail',
//     data: { project_type, project_id }
//   })
// }

